<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo01-basic</title>

    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>
<body>
    
    <div id="app">

        <my-cpn></my-cpn>
    </div> 



</body>
</html>


<script>

var c1 = Vue.extend({
    template: `<div>
        <h1>通用标题2</h1>
        <span>11通用内容123111222333</span>
    </div>`
});

// 这是全局组件
Vue.component('my-cpn',c1);

var app = new Vue({
  el: '#app',
  data: {
  },
  methods:{
  }
})
</script>
